import request from "@/utils/request";

// 查询输运数据列表
export function listTransfer(query) {
  return request({
    url: "/service-ry/out/transfer/list",

    method: "get",
    params: query,
  });
}

// 查询输运数据详细
export function getTransfer(id) {
  return request({
    url: "/service-ry/out/transfer/" + id,

    method: "get",
  });
}

// 新增输运数据
export function addTransfer(data) {
  return request({
    url: "/service-ry/out/transfer",

    method: "post",
    data: data,
  });
}

// 修改输运数据
export function updateTransfer(data) {
  return request({
    url: "/service-ry/out/transfer",

    method: "put",
    data: data,
  });
}

// 删除输运数据
export function delTransfer(id) {
  return request({
    url: "/service-ry/out/transfer/" + id,

    method: "delete",
  });
}

// 导出输运数据
export function exportTransfer(query) {
  return request({
    url: "/service-ry/out/transfer/export",

    method: "get",
    params: query,
  });
}
